from django.db import models
from datetime import date


class BookInfo(models.Model):
    title = models.CharField(verbose_name='书名', max_length=32)
    author = models.CharField(verbose_name='作者', max_length=12)
    press = models.CharField(verbose_name='出版社', max_length=12)
    pub_date = models.DateTimeField(verbose_name='出版日期', default=date(year=2000, month=1, day=1))


